#include "timebuf.hh"
#include <vector>
#include <cstdint>

typedef struct 
{
	uint32_t data[16];
} TReg;

struct WriteData
{
	bool valid;
	int idx;
	TReg data;
};

struct WriteBuf
{
	TimeBuffer<WriteData> buf;
	int latency;
	WriteBuf(int lat): buf(0,9), latency(lat)
	{}
};

class BIU
{
	std::vector<WriteBuf> toSHU;
	public:
	BIU()
	{
		for (int i = 0; i < 100; i++) {
			toSHU.emplace_back(1);
		}
	}
};	

int main()
{
	BIU biu;
	while (1);
}
